﻿using System;

namespace ExceptionFilters
{
    //自定义异常类MyCustomException，继承自Exception类
    public class MyCustomException : Exception
    {
        public MyCustomException(string message)
            : base(message)
        {

        }
        //添加ErrorCode属性，产生异常过滤器
        public int ErrorCode { get; set; }
    }
}